package honor;

public enum HonorType
{
	LevelReach(0),
	ComTaskNum(1),
	ComTask(2),
	WinSoldierNum(3),
	WinRobberNum(4),
	WinMasterNum(5),
	PerfectVS(6),
	NoseVS(7),
	Rank(8),
	GetEquipItem(9),
	FishingNum(10),
	CookingNum(11),
	MiningNum(12),
	MakeNum(13),
	ServerON1VIP(14),
	ServerON1PlayerLevel(15),
	ServerON1VIPMoney(16),
	ServerON1Arena(17),
	ServerON1Rank(18),
	ServerON1Guild(19),
	TowerNum(20);

	private int intValue;
	private static java.util.HashMap<Integer, HonorType> mappings;
	private synchronized static java.util.HashMap<Integer, HonorType> getMappings()
	{
		if (mappings == null)
		{
			mappings = new java.util.HashMap<Integer, HonorType>();
		}
		return mappings;
	}

	private HonorType(int value)
	{
		intValue = value;
		HonorType.getMappings().put(value, this);
	}

	public int getValue()
	{
		return intValue;
	}

	public static HonorType forValue(int value)
	{
		return getMappings().get(value);
	}
}
